#直接安装
sudo yum install -y \
  conmon \
  containernetworking-cni \
  git \
  glib2-devel \
  glibc-devel \
  go \
  iptables \
  libgpg-error-devel \
  libselinux-devel \
  make \
  pkgconfig \
  runc \
  containers-common

#another way to install dependencies

#  golang-github-cpuguy83-md2man \

#  glibc-static \
dnf --enablerepo=PowerTools install glibc-static

#  gpgme-devel \
dnf --enablerepo=PowerTools install gpgme-devel

#  libassuan-devel \
dnf --enablerepo=PowerTools install libassuan-devel

#  device-mapper-devel \
dnf --enablerepo=PowerTools install device-mapper-devel

#  libseccomp-devel \
dnf install libseccomp-devel

#  btrfs-progs-devel \
#替换
wget http://mirror.rackspace.com/elrepo/elrepo/el8/x86_64/RPMS/elrepo-release-8.2-1.el8.elrepo.noarch.rpm

rpm -Uvh elrepo-release*rpm

dnf --enablerepo=elrepo-testing install btrfs-progs-devel
